<!-- toaster directive -->
<toaster-container toaster-options="{'position-class': 'toast-top-right', 'close-button':true}"></toaster-container>
<!-- / toaster directive -->

<!-- 导航条 -->
<div class="bg-white bread-crumb">
    <ul class="breadcrumb b-a m-b-n-xs lter b-b wrapper-md">
        <li><a ui-sref="main.tpl.homePage"><i class="fa fa-home"></i> 首页</a></li>
        <li><a ui-sref="main.plat.reptileinfo.list">爬虫参数管理</a></li>
        <li class="active" ng-bind="title"></li>
    </ul>
</div>

<!-- 内容区域 -->
<div class="wrapper-md content">
    <div class="panel panel-default">
        <!-- 头部 -->
        <div class="panel-heading font-bold">{{title}}
            <a class="btn btn-sm btn-icon btn-rounded btn-default pull-right m-t-n-xs" ui-sref="main.plat.reptileinfo.list"><i class="text-md fa fa-times text-muted"></i></a>
        </div>
        <!--表单-->
        <div class="panel-body">
            <form class="form-horizontal"  name="reptile_form" id="reptileform">

                <input type="hidden" class="form-control" placeholder="请输入网站地址" ng-model="record.configId" >
                <!--平台名称-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label"><span class="text-danger wrapper-sm">*</span>所属平台</label>
                    <div class="col-sm-2">
                        <select class="form-control" ng-model="record.platNo" ng-options="d.platNo as d.platName for d in platList" id="platNo" name="platNo">
                            <option value="">--选择平台--</option>
                        </select>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>
                
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label"> <span class="text-danger wrapper-sm">*</span>选择类型</label>
                    <div class="col-sm-2">
                        <select class="form-control" ng-model="record.type" id="type" name="type" ng-change="changeType()">
                            <option value="">--选择平台--</option>
                            <option value="1">--网站-文章--</option>
                            <option value="2">--微信订阅号--</option>
                            <option value="3">--网站-视频--</option>
                        </select>
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>


                <!--网站地址-->
                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label" ><span class="text-danger wrapper-sm">*</span>网站地址</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" name="site" id="site" placeholder="请输入网站地址" ng-model="record.site" >
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>

                <div class="form-group">
                    <label class="col-lg-2 col-sm-3 control-label">二级网址</label>
                    <div class="col-sm-6">
                        <input type="text" class="form-control" name="secondSite" id="secondSite" placeholder="请输入二级地址" ng-model="record.secondSite" >
                    </div>
                </div>
                <div class="line line-dashed b-b line-lg pull-in"></div>

				<div id="type_keyword">
	                <div class="form-group">
	                    <label class="col-lg-2 col-sm-3 control-label" >
	                        <span class="text-danger wrapper-sm">*</span>关键字</label>
	                    <div class="col-sm-6">
	                        <input type="text" class="form-control" name="keyword" id="keyword" placeholder="请输入关键字" ng-model="record.keyword" >
	                    </div>
	                </div>
	                <div class="line line-dashed b-b line-lg pull-in"></div>
				</div>
				
                <!--btn-->
                <div class="form-group">
                    <div class="col-sm-6 col-sm-offset-2">
                        <button type="reset" class="btn ifc-btn btn-dark">重置</button>
                        <button type="submit" class="btn btn-info w-xs m-l-xl"  ng-disabled="isDisabled">保存</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
<style>
    #activity .record{
        width: 70%;
    }
    #activity .radio{
        min-width: 120px;
    }
    #activity .previewWrap{
        width:500px;
        padding-bottom: 10px;
        border:1px solid #d3d3d3;
    }
    #activity .previewWrap .text{
        margin-top:50px;
    }
    .MR10{
        margin-right: 10px;
    }
    .previewWrap{
        text-align: center;
        margin-right: 10px;
        margin-bottom: 20px;
    }
    .previewWrap .preview{
        width: 330px;
        height: 270px;
        border: 1px solid #d6d5d5;
        margin-top: 10px;
    }
    .previewWrap .preview .title{
        padding:10px;
        font-size: 12px;
        text-align: left;
    }
    .previewWrap .upLoadImg{
        width: 140px;
        height: 140px;
        border:1px dashed #d6d5d5;
        padding-top: 38px;
        margin:15px 0 0 30px;
        display:inline-block;
        background: url('res/img/addPic.png') no-repeat center;
        cursor: pointer;
    }
    .previewWrap .preview .text{
        color:#d6d5d5;
        padding-top: 20px;
    }

    .previewWrap .text{
        padding:13px 50px;
        /*margin-top: 50px;*/
    }
    .previewWrap .preViewImgWrap{
        margin: 15px;
    }
    .previewWrap .preViewImg{
        width:150px;
        height:150px;
        overflow: hidden;
    }
    .fl{
        float:left;
    }
    input[type="file"]{
        display: none;
    }
    .previewMain{
        /*height:86%;*/
    }

    .preViewImg{
        width:300px;
        height:190px;
        overflow: hidden;
    }
    .preViewImg img{
        /*width: 100%;*/

    }
    .preViewImg .picItem{
        height: 100%;
        position: relative;
    }
    .preViewImg .mask + div{
        height: 100%;
        width: 100%;
    }
    .picItem:hover .mask{
        height:100%;
    }
    .preViewImg .mask{
        position: absolute;
        overflow: hidden;
        height:0;
        width: 100%;
        background:rgba(0,0,0,0.5);
        transition: all 0.3s;
    }
    .preViewImg span{
        position:absolute;
        width: 80px;
        height:34px;
        border-radius: 17px;
        line-height: 34px;
        text-align: center;
        color: #fff;
        cursor: pointer;
        background:deepskyblue;
        left:50%;
        top:50%;
        font-size: 12px;
        transform: translate(-50%,-50%);
        -ms-transform: translate(-50%,-50%);
        -webkit-transform: translate(-50%,-50%);
        -o-transform: translate(-50%,-50%);
    }
</style>